package com.treeroot.orderservice.order.client;

import com.treeroot.commonutils.ordervo.PlaneInfoOrder;
import com.treeroot.orderservice.order.client.DegradeFeignClient.getPlaneInfoDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Description:
 * @Author:treeRoot
 * @Email:553503639@qq.com
 * @Date: Create in 09:17 / 2022/5/18
 */
@Component
@FeignClient(name = "service-plane",fallbackFactory = getPlaneInfoDegradeFeignClient.class)
public interface PlaneClient {
    //    根据航班id查普通询航班信息
    @PostMapping("/pc/plane/getPlaneInfoOrder/{id}/{planeType}")
    public PlaneInfoOrder getPlaneInfoOrder(@PathVariable("id") String id,@PathVariable("planeType")String planeType);


}
